#ifndef	DSTIN_CFG_GLOBALS
#define	DSTIN_CFG_GLOBALS
#include <includes.h>

/***********************************************************/
/****************** Digital Input define   *****************/
/***********************************************************/

/* Input port configuration */
const DstInputsCfg_TypeDef DstInputsCfgTable[DstInputsOrd_TOTNum]={
  {RCCPeriph_EXCV2_HLIM   ,
   GPIOModeI_EXCV2_HLIM   ,
   GPIOSpeed_EXCV2_HLIM   ,
   GPIOxPort_EXCV2_HLIM   ,
   GPIOxBitx_EXCV2_HLIM   ,},
                        
  {RCCPeriph_EXCV2_LLIM   ,
   GPIOModeI_EXCV2_LLIM   ,
   GPIOSpeed_EXCV2_LLIM   ,
   GPIOxPort_EXCV2_LLIM   ,
   GPIOxBitx_EXCV2_LLIM   ,},
                        
  {RCCPeriph_BUILD_VOL_HLIM   ,
   GPIOModeI_BUILD_VOL_HLIM   ,
   GPIOSpeed_BUILD_VOL_HLIM   ,
   GPIOxPort_BUILD_VOL_HLIM   ,
   GPIOxBitx_BUILD_VOL_HLIM   ,},
                        
  {RCCPeriph_BUILD_VOL_LLIM   ,
   GPIOModeI_BUILD_VOL_LLIM   ,
   GPIOSpeed_BUILD_VOL_LLIM   ,
   GPIOxPort_BUILD_VOL_LLIM   ,
   GPIOxBitx_BUILD_VOL_LLIM   ,},
                        
  {RCCPeriph_EXCV_HLIMIT   ,
   GPIOModeI_EXCV_HLIMIT   ,
   GPIOSpeed_EXCV_HLIMIT   ,
   GPIOxPort_EXCV_HLIMIT   ,
   GPIOxBitx_EXCV_HLIMIT   ,},
                        
  {RCCPeriph_EXCV_LLIMIT   ,
   GPIOModeI_EXCV_LLIMIT   ,
   GPIOSpeed_EXCV_LLIMIT   ,
   GPIOxPort_EXCV_LLIMIT   ,
   GPIOxBitx_EXCV_LLIMIT   ,},
                        
  {RCCPeriph_EXCI_HLIMIT   ,
   GPIOModeI_EXCI_HLIMIT   ,
   GPIOSpeed_EXCI_HLIMIT   ,
   GPIOxPort_EXCI_HLIMIT   ,
   GPIOxBitx_EXCI_HLIMIT   ,},
                        
  {RCCPeriph_EXCI_LLIMIT   ,
   GPIOModeI_EXCI_LLIMIT   ,
   GPIOSpeed_EXCI_LLIMIT   ,
   GPIOxPort_EXCI_LLIMIT   ,
   GPIOxBitx_EXCI_LLIMIT   ,},
                        
  {RCCPeriph_EXCI2_HLIMIT,
   GPIOModeI_EXCI2_HLIMIT,
   GPIOSpeed_EXCI2_HLIMIT,
   GPIOxPort_EXCI2_HLIMIT,
   GPIOxBitx_EXCI2_HLIMIT,},

  {RCCPeriph_EXCI2_LLIMIT,
   GPIOModeI_EXCI2_LLIMIT,
   GPIOSpeed_EXCI2_LLIMIT,
   GPIOxPort_EXCI2_LLIMIT,
   GPIOxBitx_EXCI2_LLIMIT,},

  {RCCPeriph_AUX_IN1,
   GPIOModeI_AUX_IN1,
   GPIOSpeed_AUX_IN1,
   GPIOxPort_AUX_IN1,
   GPIOxBitx_AUX_IN1,},
};

const OS_FLAGS OSDSTINFlagsTimingTable[DstInputsOrd_TOTNum]={
    OSDSTINFlags_TimEXCV2_HLIMIT, 
    OSDSTINFlags_TimEXCV2_LLIMIT, 
    OSDSTINFlags_TimBVOL_HLIMIT , 
    OSDSTINFlags_TimBVOL_LLIMIT , 
    OSDSTINFlags_TimEXCV_HLIMIT , 
    OSDSTINFlags_TimEXCV_LLIMIT , 
    OSDSTINFlags_TimEXCI_HLIMIT , 
    OSDSTINFlags_TimEXCI_LLIMIT , 
    OSDSTINFlags_TimEXCI2_HLIMIT, 
    OSDSTINFlags_TimEXCI2_LLIMIT, 
    OSDSTINFlags_TimAUX_IN1     , 
};
#endif